<!DOCTYPE html>
<html lang="en">
	<head>
		<title>{$Think.config.SITENAME}</title>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT">
		<!--Loading bootstrap css-->
		<link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
		<link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/font-awesome/css/font-awesome.min.css">
		<link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/vendors/bootstrap/css/bootstrap.min.css">
		<!--Loading style-->
		<link type="text/css" rel="stylesheet" href="__PUBLIC__/MAdmin/css/themes/style1/orange-blue.css" class="default-style">
		<script src="__PUBLIC__/MAdmin/js/jquery-1.10.2.min.js"></script>
		<!-- Validform_v5.3.2验证框架 -->
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css" />
		<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script>
		<script type="text/javascript"><!--
			function resetVerify() { 
				//重载验证码
				var timenow = new Date().getTime();
					$('#verifyImg').attr("src", '__APP__?g=Admin&m=Public&a=verify#'+timenow);
			}
			
			$(function() {
				var myform = $("#myform").Validform({
					tiptype:3,
					label:".label",
					showAllError:true,
					postonce:true,//开启二次提交防御
					ajaxPost:false,
					beforeSubmit:function(curform) {
						//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
						lockScreen();
					},
					callback:function(data){
						$.Hidemsg();
					}
				});
				myform.addRule([{
					ele:"#name",
					datatype:"*1-20",
					nullmsg:"请输入用户名",
				},
				{
					ele:"#pwd",
					datatype:"*",
					nullmsg:"请输入密码"
				};
			});
		</script>
		<style>
			body { font-family:"微软雅黑"; background-image:url(../Public/img/loginbackground.jpg); }
			.forget-password h4 { font-family:"微软雅黑"; }
		</style>
	</head>
	<body id="signin-page">
		<div class="page-form">
			<form id="myform" name="myform" action="__APP__?g=Admin&m=Public&a=check_login" class="form" method="post">
				<div class="header-content">
					<p><a href="__APP__?g=Index"><h1>{$Think.config.SITENAME}</h1></a></p>
				</div>
				<div class="body-content">
					<p>用户登录:</p>
					<div class="form-group">
						<div class="input-icon right"><i class="fa fa-user"></i>
							<input type="text" placeholder="请输入用户名" id="name" name="name" value="" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<div class="input-icon right"><i class="fa fa-key"></i>
							<input type="password" placeholder="请输入密码" id="pwd" name="pwd" value="" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<div class="row">
							<div class="col-md-7">
								<input type="text" placeholder="请输入验证码" value="" id="verify_code" name="verify_code" class="form-control" />
							</div>
							<div  class="col-md-5">
								<img id="verifyImg" src="__APP__?g=Admin&m=Public&a=verify" onClick="javascript:resetVerify()" alt="点击刷新验证码" />
							</div>
						</div>
					</div>
					<div class="form-group pull-left">
						<div class="checkbox-list">
							<label><input type="checkbox" />&nbsp;记住我</label>
						</div>
					</div>
					<div class="form-group pull-right">
						<button type="submit" class="btn btn-success">登录 &nbsp;<i class="fa fa-chevron-circle-right"></i></button>
					</div>
					<div class="clearfix"></div>
				</div>
			</form>
		</div>
	</body>
</html>